package com.rois.librois.RoIS;


/**
* RoIS/Completed_Status.java .
* IDL-to-Java コンパイラ (ポータブル), バージョン "3.1" で生成
* 生成元: RoIS_IDL.idl
* 2011年9月8日 0時05分17秒 JST
*/


/* ReturnCode_t */
public class Completed_Status implements org.omg.CORBA.portable.IDLEntity
{
  private        int __value;
  private static int __size = 5;
  private static com.rois.librois.RoIS.Completed_Status[] __array = new com.rois.librois.RoIS.Completed_Status [__size];

  public static final int _CMD_OK = 0;
  public static final com.rois.librois.RoIS.Completed_Status CMD_OK = new com.rois.librois.RoIS.Completed_Status(_CMD_OK);
  public static final int _CMD_ERROR = 1;
  public static final com.rois.librois.RoIS.Completed_Status CMD_ERROR = new com.rois.librois.RoIS.Completed_Status(_CMD_ERROR);
  public static final int _CMD_ABORT = 2;
  public static final com.rois.librois.RoIS.Completed_Status CMD_ABORT = new com.rois.librois.RoIS.Completed_Status(_CMD_ABORT);
  public static final int _CMD_OUT_OF_RESOURCES = 3;
  public static final com.rois.librois.RoIS.Completed_Status CMD_OUT_OF_RESOURCES = new com.rois.librois.RoIS.Completed_Status(_CMD_OUT_OF_RESOURCES);
  public static final int _CMD_TIMEOUT = 4;
  public static final com.rois.librois.RoIS.Completed_Status CMD_TIMEOUT = new com.rois.librois.RoIS.Completed_Status(_CMD_TIMEOUT);

  public int value ()
  {
    return __value;
  }

  public static com.rois.librois.RoIS.Completed_Status from_int (int value)
  {
    if (value >= 0 && value < __size)
      return __array[value];
    else
      throw new org.omg.CORBA.BAD_PARAM ();
  }

  protected Completed_Status (int value)
  {
    __value = value;
    __array[__value] = this;
  }
} // class Completed_Status
